<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript"
	src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script type="text/javascript" src="js/jquery-3.1.0.js"></script>
<!-- 引入样式 -->
<link rel="stylesheet"
	href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="text/javascript" src="js/axios.js"></script>
<script type="text/javascript" src="js/qs.js"></script>
<style type="text/css">
.lisdiv{
   height: 35px;
   line-height: 35px;
   border-bottom: 1px #ccc dashed;
}
.spand{
    margin-right:20px;
    margin-left: 20px;
}
.inputse{
margin-right: 5px;
}
.funsub{
   width: 250px;
   margin: 5px;
   margin: 0 auto;
   background: #ccc
}
</style>

</head>

<body class="fixed-left modal-open" style="padding-right: 16px;">
	<div tabindex="-1" class="modal fade in" id="basepop_popview"
		role="dialog" aria-hidden="true"
		style="display: block; z-index: 1052;">
		<div class="modal-dialog" id="basepop_popview_first_child"
			style="width: 700px;">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="basepop_popview_title">批量转移</h4>
				</div>
				<div class="modal-body" id="basepop_popview_body">
					<h4>选择转移的目标用户</h4>
					<div id="ids" style="height: 500px">

						<from id="fromse"> <c:forEach items="${userall}"
							var="userall">
							<li class="lisdiv"><input type="radio" name="apiContentse" value="1">
								<span id="${userall.use_id}" class="spand">${userall.use_name}</span> <input
								type="hidden" value="${userall.use_id}" name="inpused">

							</li>
						</c:forEach> <input type="button" name="" value="提交" onclick="funsub();" /> </from>
						<script type="text/javascript">
							function funsub() {
								var inpused = document
										.getElementsByName("inpused");
								//alert(inpused);
								var inpuArray = inpused.length;
								var box = document
										.getElementsByName("apiContent");
								var sm = new Array();
								for (var i = 0; i < inpuArray; i++) {
									var apiContentStr = "";
									if (box.checked == true) {
										apiContentStr = inpused[i].value + ","
												+ box.value;
										sm.push(apiContentStr);
									}
								}
								$.ajax({
									type : 'POST',
									url : '/selsefrom',
									contentType : "application/json",
									data : JSON.stringify(sm),
									success : function(data) {
										alert("转移成功");
									}
								});
							}
						</script>
					</div>
				</div>
			</div>
		</div>
</body>

</html>